package com.yixun.qfbao.request.login;

import com.yixun.qfbao.model.ModelInfo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zilong.liu
 * @date 2021-2-20
 *
 * desc:
 *     	模板请求数据
 */
@Data
public class ModelReqDto {
	
	@ApiModelProperty(value = "id")
	private Long id;
	
	@ApiModelProperty(value = "模板名称")
	private String name;
	
	@ApiModelProperty(value = "模板值")
	private String value;
	
	public ModelInfo convertModelReqDtoToModelInfo() {
		ModelInfo modelInfo = new ModelInfo();
		modelInfo.setModelId(id);
		modelInfo.setModelName(name);
		modelInfo.setModelValue(value);
		return modelInfo;
	}
}
